#coding=utf-8

from django import forms
from django.forms import ModelForm
from django.forms.widgets import PasswordInput
from models import User

class UserForm(forms.ModelForm):
    ''' A form to create new or edit user '''
    
    user_password = forms.CharField(widget=PasswordInput(render_value=True))
    
    class Meta:
        model = User